package com.nuanshui.heatedloan.controller;

import java.util.List;

import com.nuanshui.framework.exception.GlobalErrorCode;

public class ResponseObject<T> {

	private String score;//获取的积分
	private Integer level;//级别
	private GlobalErrorCode status = GlobalErrorCode.SUCESS;
	private String moreInfo;
	private Integer acquireScore;
	private Integer nextScore;
	private Integer subErrorCode;
    private List<String> serverIps;
    
    
    
    

    public GlobalErrorCode getStatus() {
		return status;
	}

	public void setStatus(GlobalErrorCode status) {
		this.status = status;
	}

	public List<String> getServerIps() {
        return serverIps;
    }

    public void setServerIps(List<String> serverIps) {
        this.serverIps = serverIps;
    }


	public Integer getSubErrorCode() {
		return subErrorCode;
	}

	public void setSubErrorCode(Integer subErrorCode) {
		this.subErrorCode = subErrorCode;
	}

	private T data;
	
    
	public Integer getAcquireScore() {
		return acquireScore;
	}

	public void setAcquireScore(Integer acquireScore) {
		this.acquireScore = acquireScore;
	}

	public Integer getNextScore() {
		return nextScore;
	}

	public void setNextScore(Integer nextScore) {
		this.nextScore = nextScore;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public String getScore() {
		return score;
	}

	public void setScore(String score) {
		this.score = score;
	}

	/**
	 * 正常返回，有数据
	 * 
	 * @param data
	 */
	public ResponseObject(T data) {
		this.data = data;
	}

	/**
	 * 正常返回，无数据
	 */
	public ResponseObject() {
	}

	/**
	 * 错误状态返回
	 * 
	 * @param status
	 */
	public ResponseObject(GlobalErrorCode status) {
		this.status = status;
	}

	/**
	 * 错误状态返回
	 * 
	 * @param moreInfo
	 * @param status
	 */
	public ResponseObject(String moreInfo, GlobalErrorCode status) {
		this.moreInfo = moreInfo;
		this.status = status;
	}

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}

	public int getErrorCode() {
		return status.getErrorCode();
	}
	
	
	public String getError() {
		return status.getError();
	}


	public String getMoreInfo() {
		return moreInfo;
	}

	public void setMoreInfo(String moreInfo) {
		this.moreInfo = moreInfo;
	}
	
	
}
